﻿using Lockstep.Collision2D;
using Lockstep.Math;
using Sirenix.OdinInspector;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace Lockstep.Game
{
    /// <summary>
    /// 子弹类型
    /// </summary>
    public enum BulletType { 
        None,
        NormalLine,
        IceBullet,
    }

    [Serializable]
    public class NormalLineInfo {
        public LFloat speed;
        public int damage;
    }
    [CreateAssetMenu(menuName = "ScriptableObject/BulletConfig")]
    public class BulletConfig : SerializedScriptableObject
    {
        public int id;
        public bool _DebugShow;
        public BulletType type;
        public GameObject prefab;
        [HideLabel, ShowIf("type", BulletType.NormalLine)]
        public NormalLineInfo normalLine;
        public bool isCollider;
        public EColliderLayer colliderLayer;
        public ColliderData colliderData;
    }
}
